﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace HMaker.Events
{
    public class ContextMenuNeededEventArgs : EventArgs
    {
        /// <summary>
        /// 触发事件时的位置(以控件起点为原点)
        /// </summary>
        public Point Location;

        /// <summary>
        /// 触发事件时的位置(以背景起点为原点)
        /// </summary>
        public Point LocationInBG;

        /// <summary>
        /// 触发事件时选定的区域
        /// </summary>
        public Rectangle Rect;

        /// <summary>
        /// 触发事件时是否在选定的区域内
        /// </summary>
        public bool IsInArea;

        /// <summary>
        /// 触发事件时,该控件由哪个控件触发
        /// </summary>
        public Control Control = null;

    }

    public delegate void ContextMenuNeededEventHandler(object sender, ContextMenuNeededEventArgs e);

}
